#include "DirectSound.h"

DirectSound *gDSound = 0;

DirectSound::DirectSound(DWORD CoopLevel, unsigned short NumBuffers)
{
	MainSound = NULL;
	HRESULT hr = S_OK;
	hr = XAudio2Create(&MainSound, 0, XAUDIO2_DEFAULT_PROCESSOR);
	if(hr != S_OK)
	{
		MessageBox(NULL, "There has been an error creating the sound system.", "Sound System Error", MB_OK);
	}

}

DirectSound::~DirectSound()
{

	/*if(MainSound)
	{
		MainSound->Release();
		MainSound = NULL;
	}*/
}